package org.example.basics;

interface Talk {
    void introduce();
}

interface Sport {
    void run();
}

public enum EnumDemo2 implements Talk, Sport {
    AA, BB; //分号分隔

    @Override
    public void introduce() {
        System.out.println(super.name());
    }

    @Override
    public void run() {
        System.out.println(super.name() + ",run.....");
    }

    public static void main(String[] args) {
        AA.introduce();    // AA
        BB.run();          // BB,run.....
    }
}
